package cn.tedu.scalafunction

/**
 * @author Amos
 * @date 2022/5/17
 */

object Currying {
  def main(args: Array[String]): Unit = {
    def curryingmethod(a:Int,b:Int)(c:Double)={
      c * (a + b)
    }

    println(curryingmethod(3,7)(10))
    val func = curryingmethod(3, 7)(_)
    println(func(7.3))

  }

}
